<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
<script type="text/javascript" src="js/PlanetaryPositions.js"></script>
<script type="text/javascript" src="js/NumberUtils.js"></script>
</head>
<body>
<div id="output"></div>
<script type='text/javascript'>
	var div = document.getElementById("output");
	new PlanetaryPositions();
	new NumberUtils();
	function tick(){
		//var date = new Date();
		var lon = -2.58;
		//var lonsun = $PlanetaryPositions.sun($PlanetaryPositions.d(date)).lonsun;
		//var GMST0 = $NumberUtils.normaliseDegrees(lonsun+180)/15;
		//var UT = date.getHours()+((date.getMinutes()/60)+(date.getSeconds()/3600))
		div.innerHTML = "LST: "+$NumberUtils.degreesToHMS($PlanetaryPositions.localSiderealTime(new Date(), lon)).string;
	}
	setInterval(tick, 500)
</script>
</body>
</html>